import { v4 } from "uuid";
export const menu = () => {
    return new Promise((resolve, reject) => {
        setTimeout(() => {
            resolve({
                code: 0,
                data: [
                    {
                        id: v4(),
                        name: "首页",
                        url: "/",
                        icon: "iconfont icon-shouye",
                        children: []
                    },
                    {
                        id: v4(),
                        name: "组织架构",
                        url: v4(),
                        icon: "iconfont icon-zuzhijiagou",
                        children: [{
                            id: v4(),
                            name: "部门",
                            url: "/org",
                            icon: "iconfont icon-bumen",
                            children: []
                        },
                        {
                            id: v4(),
                            name: "岗位",
                            url: "/org/post",
                            icon: "iconfont icon-gangwei",
                            children: []
                        }
                        ]
                    },
                    {
                        id: v4(),
                        name: "权限管理",
                        url: v4(),
                        icon: "iconfont icon-zhanghaoquanxianguanli",
                        children: [{
                            id: v4(),
                            name: "主页",
                            url: "/quanxian",
                            icon: "iconfont icon-zhuye",
                            children: []
                        },
                        {
                            id: v4(),
                            name: "配置",
                            url: "/quanxian/config",
                            icon: "iconfont icon-peizhiguanli",
                            children: []
                        },
                        {
                            id: v4(),
                            name: "授权",
                            url: "/quanxian/give",
                            icon: "iconfont icon-shouquanguanli",
                            children: []
                        }]
                    },
                ]
            })
        }, 1000);
        
    })
}